﻿package javase.io;
//过滤器流例子--PrintStream

import java.io.*;

public class FileDemo03
{
	public FileDemo03()
	{
		try
		{
			PrintStream ps=new PrintStream (new FileOutputStream("Bonus.dat", true));
			String data="hello ";
			ps.write(data.getBytes());
			System.out.println("写入成功");
		}
		catch(Exception e)
		{
			
		}
	}
	
	public static void main(String[] args)
	{
		new FileDemo03();
	}
}